package com.bit.ioc;

import com.bit.ioc.controller.HelloController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class DemoApplication {

	public static void main(String[] args) {
		ApplicationContext context = SpringApplication.run(DemoApplication.class, args);
//		HelloController bean = context.getBean(HelloController.class);
//		bean.print();
//		HelloController bean2 = (HelloController) context.getBean("helloController");
//		HelloController bean3 = context.getBean("helloController",HelloController.class);

	}

}
